#!/usr/bin/python
# -*- coding: utf-8 -*-


# s1 = {10, 20, 30, 40, 50}
# print(s1)
# print(type(s1))
#
# s2 = {10, 30, 20, 10, 30, 40, 30, 50}
# print(s2)
#
# s3 = set('adfsdfsdfs')
# print(s3)


#增加
s1 = {10, 20}
s1.add(30)
print(s1)

s1.add((1, 3, 5))
print(s1)

s1.update((1,3,5))
print(s1)

#删除数据
#remove
s1.remove(1)
print(s1)
# s1.remove(1)
# print(s1)
#discard
s1.discard(1)
print(s1)

#pop
s1.pop()
print(s1)

print(1 in s1)
print(1 not in s1)
